package com.taotao.manage.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.abel533.entity.Example;
import com.github.abel533.mapper.Mapper;
import com.taotao.manage.mapper.ItemCatMapper;
import com.taotao.manage.pojo.ItemCat;
import com.taotao.manage.viewObject.ItemCatForTree;

@Service
public class ItemCatService extends BaseService<ItemCatForTree> {

	@Autowired
	private ItemCatMapper itemCatMapper;
	
	@Override
	public Mapper<ItemCatForTree> getMapper() {
		return itemCatMapper;
	}
	
	/*public List<ItemCatForTree> queryItemCatList(Long parentId) {
		ItemCatForTree itemCat = new ItemCatForTree();
		Example example =new Example(itemCat.getClass());
		example.createCriteria().andEqualTo("parentId",parentId).andEqualTo("status", "1");
		example.setOrderByClause("id");
		return itemCatMapper.selectByExample(example);
	}*/

	

}
